<?php
	include_once('../sys/sys.php');
	header('Content-Type: text/html; charset=utf-8');
	
	
	//图片下载前缀
	$pic_url_pre = $_POST['logopic_url_pre'];
	
	//遍历图片表进行更新
	$DB->build_query(array(
			'select' 	=> 'id,logo',
			'from'		=> 'gfunapps',
	));
	$qid = $DB->exec_query();
	$pics = '';
	while ($row = $DB->fetch_row($qid)) {
		//基于应用ID查出对应图片链接
		$c_url = $pic_url_pre . $row['logo'];
		//更新图片链接
		$DB->do_update('gfunapps', array(
				'logo'					=> $c_url,
		),
				'id=' . $row['id'] . ''
		);
		
		
	}
	echo '更新完毕';
	


?>